package com.bgrconsulting.stockorderentry.service.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.appengine.api.datastore.Key;

@XmlRootElement(name = "cashAccountBalance")
@PersistenceCapable
public class CashAccountBalance {
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	
	@Persistent
	private String accountId;
	
	@Persistent
	private String masterAccount;
	
	@Persistent
	private Double cashAvailableForInvestment;
	
	@Persistent
	private Double cashBalance;
	
	@Persistent
	private Double settledCashForInvestment;
	
	@Persistent
	private Double unsettledCashForInvestment;
	
	public CashAccountBalance(String accountId, String masterAccount, Double cashAvailableForInvestment, Double cashBalance, Double settledCashForInvestment, Double unSettledCashForInvestment) {
		this.accountId = accountId;
		this.masterAccount = masterAccount;
		this.cashAvailableForInvestment = cashAvailableForInvestment;
		this.cashBalance = cashBalance;
		this.settledCashForInvestment = settledCashForInvestment;
		this.unsettledCashForInvestment = unSettledCashForInvestment;
	}
	
	public CashAccountBalance() {
		
	}
	
	public void setMasterAccount(String masterAccount) {
		this.masterAccount = masterAccount;
	}
	
	public String getMasterAccount() {
		return this.masterAccount;
	}
	
	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	
	public String getAccountId() {
		return this.accountId;
	}
	
	
	public void setCashAvailableForInvestment(Double cashAvailableForInvestment) {
		this.cashAvailableForInvestment = cashAvailableForInvestment;
	}
	
	public Double getCashAvailableForInvestment() {
		return this.cashAvailableForInvestment;
	}
	
	public void setCashBalance(Double cashBalance) {
		this.cashBalance = cashBalance;
	}
	
	public Double getCashBalance() {
		return this.cashBalance;
	}
	
	public void setSettledCashForInvestment(Double settledCashForInvestment) {
		this.settledCashForInvestment = settledCashForInvestment;
	}
	
	public Double getSettledCashForInvestment() {
		return this.settledCashForInvestment;
	}
	
	public void setUnsettledCashForInvestment(Double unsettledCashForInvestment) {
		this.unsettledCashForInvestment = unsettledCashForInvestment;
	}
	
	public Double getUnSettledCashForInvestment() {
		return this.unsettledCashForInvestment;
	}
	
	public void setKey(Key key) {
	    this.key = key;
	}
	
	public Key getKey() {
	    return this.key;
	}
}
